package com.cy.pojo;

import java.util.List;

public class BeanDefinition {

    /**
     * bean的Id
     */
    private String id;

    /**
     * 类型
     */
    private Class<?> clazz;

    private List<BeanProperty> properties;

    /**
     * 标记该类是否使用代理类
     */
    private boolean useProxy;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Class<?> getClazz() {
        return clazz;
    }

    public void setClazz(Class<?> clazz) {
        this.clazz = clazz;
    }

    public List<BeanProperty> getProperties() {
        return properties;
    }

    public void setProperties(List<BeanProperty> properties) {
        this.properties = properties;
    }

    public boolean isUseProxy() {
        return useProxy;
    }

    public void setUseProxy(boolean useProxy) {
        this.useProxy = useProxy;
    }

    @Override
    public String toString() {
        return "BeanDefinition{" +
                "id='" + id + '\'' +
                ", clazz=" + clazz +
                ", properties=" + properties +
                ", useProxy=" + useProxy +
                '}';
    }
}
